package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.CourseStage;
import com.zcxy360.sandtable.domain.CourseStageExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseStageMapper {
	
//	
	CourseStage selectByPrimaryKeyWithCascade(Integer stageId);
	List<CourseStage> listByCourseId(Integer courseId);
	List<CourseStage> listByCourseIdWithCascade(Integer courseId);
	int insertBatch(List<CourseStage> courseStages);
	int startTeamStage(@Param("courseId")Integer courseId, @Param("keep") boolean keep);
//
	
    long countByExample(CourseStageExample example);

    int deleteByExample(CourseStageExample example);

    int deleteByPrimaryKey(Integer stageId);

    int insert(CourseStage record);

    int insertSelective(CourseStage record);

    List<CourseStage> selectByExample(CourseStageExample example);

    CourseStage selectByPrimaryKey(Integer stageId);

    int updateByExampleSelective(@Param("record") CourseStage record, @Param("example") CourseStageExample example);

    int updateByExample(@Param("record") CourseStage record, @Param("example") CourseStageExample example);

    int updateByPrimaryKeySelective(CourseStage record);

    int updateByPrimaryKey(CourseStage record);
}